import random

# 初始化玩家输入和电脑猜拳以及相对差
print("猜拳游戏规则：石头-1，剪刀-2，布-3：")
player = int(input("请输入您出拳的数字："))
computer = random.randint(1, 3)
flag = computer - player

# 初始化列表并提示出拳
game_list = ['石头', '剪刀', '布']
print("===================")
print("您出了【%s】,\n电脑出的是【%s】。" % (game_list[player-1], game_list[computer-1]))
print("===================")

# 判断两者差来确定是否胜利
if flag == 0:
    print("平局")
else:
    if flag == 1 or flag == -2:
        print("您赢鸟！")
    else:
        print("您输鸟！")
